const getRandom = (i) => {
  let result = Math.random() + '';
  return result.slice(Math.floor(i) + 1);
};

export const getKey = () => {
  return Date.parse(new Date()) + "-" + getRandom(Math.random() * 10);
};
const str = 'ABCDEFGHIJ';
export const getKeyAToJ = () => {
  let result = Date.parse(new Date()) + "-" + getRandom(Math.random() * 10);
  result = result.replace(/(\w)/g, ($1) => str[$1]);
  console.log(result);
  return result;
};

